<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Detail: redis/service_redis_client.hpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Detail
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_cebb7d08ed93c19198378459bbcfe4fa.html">redis</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">service_redis_client.hpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>服务redis客户端  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;box/service_context.hh&quot;</code><br />
<code>#include &quot;hiredis/include/hiredis.h&quot;</code><br />
<code>#include &quot;redis/redis.hh&quot;</code><br />
<code>#include &quot;<a class="el" href="service__tool_8hpp_source.html">service_tool.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="singleton_8hpp_source.html">singleton.hpp</a>&quot;</code><br />
</div>
<p><a href="service__redis__client_8hpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classguild__service_1_1common_1_1service__redis__client.html">guild_service::common::service_redis_client</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">服务redis客户端类  <a href="classguild__service_1_1common_1_1service__redis__client.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a0752d2320b846227ac97ce216d831e27"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="service__redis__client_8hpp.html#a0752d2320b846227ac97ce216d831e27">RedisClientSingleton</a>(...)</td></tr>
<tr class="memdesc:a0752d2320b846227ac97ce216d831e27"><td class="mdescLeft">&#160;</td><td class="mdescRight">redis客户端单例  <a href="service__redis__client_8hpp.html#a0752d2320b846227ac97ce216d831e27">More...</a><br /></td></tr>
<tr class="separator:a0752d2320b846227ac97ce216d831e27"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a879938d13a74dc6d2b0b8b0b4a20b03e"><td class="memItemLeft" align="right" valign="top"><a id="a879938d13a74dc6d2b0b8b0b4a20b03e"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="service__redis__client_8hpp.html#a879938d13a74dc6d2b0b8b0b4a20b03e">guild_service::redis_handler_type</a> = common::service_redis_client::redis_handler_type</td></tr>
<tr class="memdesc:a879938d13a74dc6d2b0b8b0b4a20b03e"><td class="mdescLeft">&#160;</td><td class="mdescRight">redis回调函数类型 <br /></td></tr>
<tr class="separator:a879938d13a74dc6d2b0b8b0b4a20b03e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a40db0e49ed8f7eb3dac18a32b45131db"><td class="memItemLeft" align="right" valign="top"><a id="a40db0e49ed8f7eb3dac18a32b45131db"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="service__redis__client_8hpp.html#a40db0e49ed8f7eb3dac18a32b45131db">guild_service::redis_result_type</a> = common::service_redis_client::redis_result_type</td></tr>
<tr class="memdesc:a40db0e49ed8f7eb3dac18a32b45131db"><td class="mdescLeft">&#160;</td><td class="mdescRight">redis返回结果类型 <br /></td></tr>
<tr class="separator:a40db0e49ed8f7eb3dac18a32b45131db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0db98d4ff8b7a3af8ae8d0e39f7d5448"><td class="memItemLeft" align="right" valign="top"><a id="a0db98d4ff8b7a3af8ae8d0e39f7d5448"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="service__redis__client_8hpp.html#a0db98d4ff8b7a3af8ae8d0e39f7d5448">guild_service::redis_reply_type</a> = common::service_redis_client::redis_reply_type</td></tr>
<tr class="memdesc:a0db98d4ff8b7a3af8ae8d0e39f7d5448"><td class="mdescLeft">&#160;</td><td class="mdescRight">redis返回原始类型 <br /></td></tr>
<tr class="separator:a0db98d4ff8b7a3af8ae8d0e39f7d5448"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a1d1da97ea7897858a311261ebd3f59c6"><td class="memItemLeft" align="right" valign="top">constexpr uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="service__redis__client_8hpp.html#a1d1da97ea7897858a311261ebd3f59c6">guild_service::kRedisCommonTimeOut</a></td></tr>
<tr class="memdesc:a1d1da97ea7897858a311261ebd3f59c6"><td class="mdescLeft">&#160;</td><td class="mdescRight">redis通用同步超时时间（单位 毫秒）  <a href="service__redis__client_8hpp.html#a1d1da97ea7897858a311261ebd3f59c6">More...</a><br /></td></tr>
<tr class="separator:a1d1da97ea7897858a311261ebd3f59c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:affbe1598865cab29d8e9427afcd10f44"><td class="memItemLeft" align="right" valign="top">constexpr uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="service__redis__client_8hpp.html#affbe1598865cab29d8e9427afcd10f44">guild_service::kRedisCommonTimeOutAsync</a></td></tr>
<tr class="memdesc:affbe1598865cab29d8e9427afcd10f44"><td class="mdescLeft">&#160;</td><td class="mdescRight">redis通用异步超时时间（单位 毫秒）  <a href="service__redis__client_8hpp.html#affbe1598865cab29d8e9427afcd10f44">More...</a><br /></td></tr>
<tr class="separator:affbe1598865cab29d8e9427afcd10f44"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a88a88173d5ff99c3f1a9144b9f16603b"><td class="memItemLeft" align="right" valign="top"><a id="a88a88173d5ff99c3f1a9144b9f16603b"></a>
constexpr char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="service__redis__client_8hpp.html#a88a88173d5ff99c3f1a9144b9f16603b">guild_service::kRedisHost</a> [] = &quot;127.0.0.1&quot;</td></tr>
<tr class="memdesc:a88a88173d5ff99c3f1a9144b9f16603b"><td class="mdescLeft">&#160;</td><td class="mdescRight">redis连接IP <br /></td></tr>
<tr class="separator:a88a88173d5ff99c3f1a9144b9f16603b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a002e13f5d43fb9c06cc3d171f33a5e6b"><td class="memItemLeft" align="right" valign="top"><a id="a002e13f5d43fb9c06cc3d171f33a5e6b"></a>
constexpr uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="service__redis__client_8hpp.html#a002e13f5d43fb9c06cc3d171f33a5e6b">guild_service::kRedisPort</a> = 6379</td></tr>
<tr class="memdesc:a002e13f5d43fb9c06cc3d171f33a5e6b"><td class="mdescLeft">&#160;</td><td class="mdescRight">redis连接端口 <br /></td></tr>
<tr class="separator:a002e13f5d43fb9c06cc3d171f33a5e6b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aecb027365d990187d9c127f492f2634a"><td class="memItemLeft" align="right" valign="top"><a id="aecb027365d990187d9c127f492f2634a"></a>
constexpr char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="service__redis__client_8hpp.html#aecb027365d990187d9c127f492f2634a">guild_service::kRedisUser</a> [] = &quot;&quot;</td></tr>
<tr class="memdesc:aecb027365d990187d9c127f492f2634a"><td class="mdescLeft">&#160;</td><td class="mdescRight">redis连接用户名 <br /></td></tr>
<tr class="separator:aecb027365d990187d9c127f492f2634a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3cd93c93d0185a9a19f6867eb324effd"><td class="memItemLeft" align="right" valign="top"><a id="a3cd93c93d0185a9a19f6867eb324effd"></a>
constexpr char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="service__redis__client_8hpp.html#a3cd93c93d0185a9a19f6867eb324effd">guild_service::kRedisPasswd</a> [] = &quot;&quot;</td></tr>
<tr class="memdesc:a3cd93c93d0185a9a19f6867eb324effd"><td class="mdescLeft">&#160;</td><td class="mdescRight">redis连接密码 <br /></td></tr>
<tr class="separator:a3cd93c93d0185a9a19f6867eb324effd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a322cce982fc5893fe7276307644756fd"><td class="memItemLeft" align="right" valign="top"><a id="a322cce982fc5893fe7276307644756fd"></a>
constexpr char&#160;</td><td class="memItemRight" valign="bottom"><b>guild_service::kRedisGetOp</b> [] = &quot;GET &quot;</td></tr>
<tr class="separator:a322cce982fc5893fe7276307644756fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a339b481af62882155617feee91f32ced"><td class="memItemLeft" align="right" valign="top"><a id="a339b481af62882155617feee91f32ced"></a>
constexpr char&#160;</td><td class="memItemRight" valign="bottom"><b>guild_service::kRedisSetOp</b> [] = &quot;SET &quot;</td></tr>
<tr class="separator:a339b481af62882155617feee91f32ced"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a82219a29a310905b3f73c0e85c57bdbd"><td class="memItemLeft" align="right" valign="top"><a id="a82219a29a310905b3f73c0e85c57bdbd"></a>
constexpr char&#160;</td><td class="memItemRight" valign="bottom"><b>guild_service::kRedisDelOp</b> [] = &quot;DEL &quot;</td></tr>
<tr class="separator:a82219a29a310905b3f73c0e85c57bdbd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6539ae1a6c63b664a0c2b56866c0373"><td class="memItemLeft" align="right" valign="top"><a id="af6539ae1a6c63b664a0c2b56866c0373"></a>
constexpr char&#160;</td><td class="memItemRight" valign="bottom"><b>guild_service::kRedisHGetOp</b> [] = &quot;HGET &quot;</td></tr>
<tr class="separator:af6539ae1a6c63b664a0c2b56866c0373"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad151ea2695f5361fee5c6e9fda2d70f4"><td class="memItemLeft" align="right" valign="top"><a id="ad151ea2695f5361fee5c6e9fda2d70f4"></a>
constexpr char&#160;</td><td class="memItemRight" valign="bottom"><b>guild_service::kRedisHSetOp</b> [] = &quot;HSET &quot;</td></tr>
<tr class="separator:ad151ea2695f5361fee5c6e9fda2d70f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a61c4a7a08d763854c45db8c13c8e1357"><td class="memItemLeft" align="right" valign="top"><a id="a61c4a7a08d763854c45db8c13c8e1357"></a>
constexpr char&#160;</td><td class="memItemRight" valign="bottom"><b>guild_service::kRedisHDelOp</b> [] = &quot;HDEL &quot;</td></tr>
<tr class="separator:a61c4a7a08d763854c45db8c13c8e1357"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>服务redis客户端 </p>
<dl class="section date"><dt>Date</dt><dd>2021/05/10 21:03</dd></dl>
<dl class="section author"><dt>Author</dt><dd>harrybao (<a href="#" onclick="location.href='mai'+'lto:'+'har'+'ry'+'bao'+'@1'+'23u'+'.c'+'om'; return false;">harry<span style="display: none;">.nosp@m.</span>bao@<span style="display: none;">.nosp@m.</span>123u.<span style="display: none;">.nosp@m.</span>com</a>)</dd></dl>
<dl class="section version"><dt>Version</dt><dd>v1.0.0</dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>Copyright © 2021 All Rights Reserved 上海欢乐互娱网络科技有限公司</dd></dl>
<dl class="section user"><dt>history:</dt><dd><table class="doxtable">
<tr>
<th>Date </th><th>Version </th><th>Author </th><th>Description </th></tr>
<tr>
<td>2021/05/10 21:03 </td><td>1.0.0 </td><td>harrybao </td><td>创建初始版本 </td></tr>
</table>
</dd></dl>
</div><h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a0752d2320b846227ac97ce216d831e27"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0752d2320b846227ac97ce216d831e27">&#9670;&nbsp;</a></span>RedisClientSingleton</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define RedisClientSingleton</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">  (*common::singleton&lt;common::service_redis_client&gt;::instance( \</div>
<div class="line">      __VA_ARGS__))</div>
</div><!-- fragment -->
<p>redis客户端单例 </p>

</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a id="a1d1da97ea7897858a311261ebd3f59c6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1d1da97ea7897858a311261ebd3f59c6">&#9670;&nbsp;</a></span>kRedisCommonTimeOut</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">constexpr uint32_t guild_service::kRedisCommonTimeOut</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">constexpr</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<b>Initial value:</b><div class="fragment"><div class="line">=</div>
<div class="line">    1000</div>
</div><!-- fragment -->
<p>redis通用同步超时时间（单位 毫秒） </p>

</div>
</div>
<a id="affbe1598865cab29d8e9427afcd10f44"></a>
<h2 class="memtitle"><span class="permalink"><a href="#affbe1598865cab29d8e9427afcd10f44">&#9670;&nbsp;</a></span>kRedisCommonTimeOutAsync</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">constexpr uint32_t guild_service::kRedisCommonTimeOutAsync</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">constexpr</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<b>Initial value:</b><div class="fragment"><div class="line">=</div>
<div class="line">    1000</div>
</div><!-- fragment -->
<p>redis通用异步超时时间（单位 毫秒） </p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20
</small></address>
</body>
</html>
